<script setup lang="ts">
// import HelloWorld from './components/HelloWorld.vue'
import myaxios from '@/utils/request'
import { onMounted } from 'vue';
import { getTime } from '@/utils/time'
onMounted(()=>{
  myaxios({
    url: '/user/login', // 本来根据mock指定的路径 是/api/user/login,但axios拦截器中做了设置
    method: 'post',
    data: {
      username: 'admin',
      password: '123456'
    }
  }).then(res =>{
    console.log(res);
  })
})

</script>

<template>
<!--  <div>-->
<!--    <a href="https://vite.dev" target="_blank">-->
<!--      <img src="/vite.svg" class="logo" alt="Vite logo" />-->
<!--    </a>-->
<!--    <a href="https://vuejs.org/" target="_blank">-->
<!--      <img src="./assets/vue.svg" class="logo vue" alt="Vue logo" />-->
<!--    </a>-->
<!--  </div>-->
<!--  <HelloWorld msg="Vite + Vue" />-->
  hello
</template>

<style scoped>

</style>
